package name.wangds.robotinput.ui

import android.content.Context
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.view.inputmethod.InputMethodManager
import kotlinx.android.synthetic.main.activity_config.*
import name.wangds.robotinput.R


class ConfigActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_config)

        btn_select_input.setOnClickListener(object : View.OnClickListener {
            override fun onClick(v: View?) {
                val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
                //拿到输入法的全部条目
                //val list = imm.inputMethodList
                //输入法选择框
                imm.showInputMethodPicker()

            }
        })

    }
}
